package chapter06

/**
 * Created with IntelliJ IDEA.
 * ClassName: Test04_ClassAccess
 * Package: chapter06
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 *          Date: 2023-06-22
 *          Time: 17:23
 */

object Test04_ClassAccess {

}


//定义一个父类
class Person{
  private var idCode:String = "213123123435"
  protected var name:String = "alice"
  var sex:String= "femail"
  private[chapter06] var age:Int = 18

  def printInfo():Unit={
    println(s"Person:$idCode $name $sex $age")
  }

}